package com.itheima.enableother.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {

        //这里返回的是一个String[]
        //"com.itheima.enableother.domain.User"
        //"com.itheima.enableother.domain.Role"

        return new String[]{"com.itheima.enableother.domain.User", "com.itheima.enableother.domain.Role"};
    }
}
